package br.ufc.ck0017.ir.tree;

import br.ufc.ck0017.temp.Label;

import java.util.ArrayList;
import java.util.List;

public class JUMP implements IRNode {
    private IRNode expression;
    private List<Label> targets;

    public JUMP(Label target) {
        List<Label> targets = new ArrayList<Label>();
        targets.add(target);

        new JUMP(new NAME(target), targets);
    }

    public JUMP(IRNode expression, List<Label> targets) {
        this.expression = expression;
        this.targets = targets;
    }

    @Override
    public List<IRNode> getChildren() {
        return null;
    }

    @Override
    public IRNode build(List<IRNode> children) {
        return null;
    }
}
